#include <stdio.h>
#include <sys/prctl.h>
#include <pthread.h>
#include "Detu_AlgDspVideoProcess.h"


HI_S32 g_MSmsgId;
static pthread_t s_hDspThread = 0;


static void* Media_Server_Msg_Proc()
{

    Detu_PHOTO_COMM_Start_Video();


    return HI_NULL;
}

HI_S32 Media_Msg_Init(void)
{
    HI_S32 s32Ret = HI_SUCCESS;
    HI_CHAR acThreadName[16] = {0};
#if 0
    pthread_t rcv_threadid;


    pthread_attr_t pthAttr;
    pthread_attr_init(&pthAttr);
    pthread_attr_setdetachstate(&pthAttr, PTHREAD_CREATE_DETACHED);
    pthread_attr_setstacksize(&pthAttr, 0x10000);
#endif
    snprintf(acThreadName, 16, "DSP_PHOTO");

    prctl(PR_SET_NAME, (unsigned long)acThreadName, 0, 0, 0);
    s32Ret = pthread_create(&s_hDspThread, 0, Media_Server_Msg_Proc, NULL);
    if(HI_SUCCESS != s32Ret)
    {
        printf("Media_Server_Receive_thread create fail\n");
       return -1;
    }  

    

    return s32Ret;

}

